<?php
namespace Util\Form\Element;

class Element {

	protected $_classes;
	
	protected $_label;
	
	protected $_attributes;
	
	protected $_type;
	
	public function __construct(){
		
	}
	
	public function setLabel($label){
		$this->_label = $label;
	}
	
	public function setAttribute($name, $value){
		$this->_attributes[$name] = $value;
	}
	
	public function setAttributes($attributes){
		$this->_attributes = array_merge($this->_attributes, $attributes);
	}
	
	public function addClass($class){
		$this->_classes[$class] = $class;
	}
	
	public function addValidation($validation){
		
	}
	
	public function getLabel(){
		return $this->_label;
	}
	
	public function getAttributes(){
		return $this->_attributes;
	}
	
	public function getClasses(){
		return $this->_classes;
	}
	
	public function getType(){
		return $this->_type;
	}
	
	public function isRequired(){
		
	}
	
	public function validate(){
		
	}
	
}

?>